POV-Ray : Newsgroups : povray.beta-test : What's with this parse error? : What's with this parse error? Server Time
29 Jul 2024 14:20:46 EDT (-0400)
  What's with this parse error?  
From: David Wallace
Date: 24 Apr 2002 15:08:22
Message: <3cc702a6@news.povray.org>
Beta-RC2, Duron 800Mhz, 512MB DDR, Win98SE
--- code ---
#declare fpnLand = function { pigment {
 crackle form <1, -1, 1>
 turbulence 0.3
 pigment_map {
  [ 0.10 pigLand0 ]
  [ 0.30 pigLand1 ]
  [ 0.50 pigLand2 ]
  [ 0.70 pigLand3 ]
  [ 0.90 pigLand4 ]
 }
}

#declare Land = isosurface {
 function { y-exp(fpnLand(x*.01, 0, z*.01).gray)+1 } // error here
 contained_by { box { <-1e4, 0, -1e4>, <1e4, 155, 1e4> } }
 max_gradient 15
 texture { txtLand }
}
--- code ---
I get an "Invalid number of parameters; 3 supplied, 8 required" error.

I thought that pigment functions took 3 floats ( a vector ).


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.